package cloud.simple.service;

import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Service;

@Service
public class TestService {
	@Autowired
	 private JdbcTemplate jdbcTemplate;
	
	public List<Map<String,Object>> getAll(){
		return jdbcTemplate.queryForList("select * from test");
	}
}
